export interface ProfileReq {
  account?: string;
  menuTypes?: number[];
}

export interface ProfileRes {
  id?: string;
  name?: string;
  account?: string;
  jobInfo?: string;
  phone?: string;
  roleName?: string;
  token?: string;
}

export interface UserInfoRes {
  data: ProfileRes;
}

export interface LoginReq {
  account: string;
  password: string;
  code?: string;
  loginType: number;
}

export interface LoginRes {
  token?: string;
  user_id?: number;
  user_name?: string;
  avatar?: string;
  data?: string;
}

export interface LoginByCodeReq {
  code: string;
}

export interface LoginByCodeRes {
  [key: string]: any;
}
